<template>
  <div :style="{ '--bgColor': bgColor }" class="count-content">
    <div class="wrapper">
      <div class="text-content">
        <div class="top">666</div>
        <div class="bottom">建设中应用</div>
      </div>
      <div
        style="
          width: 1px;
          height: 60px;
          background: rgba(63, 140, 255, 0.15);
          border-radius: 0px 0px 0px 0px;
          opacity: 1;
        "
      />
      <div class="content">
        <div class="right-top">
          <span class="right-title">市级</span>
          <span>111</span>
        </div>
        <div class="right-bottom">
          <span class="right-title">市级</span>
          <span>111</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    bgColor: {
      type: String,
      default: () => '#fdc748'
    },
    contentObj: {
      type: Object,
      default: () => {}
    }
  }
}
</script>
<style lang="scss" scoped>
.count-content {
  width: 300px;
  height: 114px;
  background: rgba(229, 239, 255, 0.3);
  border-radius: 16px 16px 16px 16px;
  opacity: 1;
  position: relative;
  display: flex;
  align-items: center;

  .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    width: 100%;
    padding: 0 10px;
  }
  .content {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
  }
  .right-title {
    font-size: 18px;
    font-family: Microsoft YaHei-Regular, Microsoft YaHei;
    font-weight: 400;
    color: #2b4054;
  }
  .right-top {
    text-align: center;
    font-family: Microsoft YaHei-Bold, Microsoft YaHei;
    font-weight: bold;
    color: #2b4054;
    display: flex;
    align-items: center;
    > span:nth-child(2) {
      margin-left: 11px;
      font-size: 24px;
      font-family: Microsoft YaHei-Bold, Microsoft YaHei;
      font-weight: bold;
      color: #2b4054;
    }
  }
  .right-bottom {
    text-align: center;
    font-family: Microsoft YaHei-Regular, Microsoft YaHei;
    font-weight: 400;
    color: #2b4054;
    display: flex;
    align-items: center;
    > span:nth-child(2) {
      margin-left: 11px;
      font-size: 24px;
      font-family: Microsoft YaHei-Bold, Microsoft YaHei;
      font-weight: bold;
      color: #2b4054;
    }
  }
  &:after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 80px;
    background: var(--bgColor);
    border-radius: 16px 16px 16px 16px;
    opacity: 1;
  }
  .text-content {
    overflow: hidden;
    .top {
      text-align: center;
      font-size: 30px;
      font-family: Microsoft YaHei-Bold, Microsoft YaHei;
      font-weight: bold;
      color: #2b4054;
    }
    .bottom {
      text-align: center;
      margin-top: 5px;
      font-size: 18px;
      font-family: Microsoft YaHei-Regular, Microsoft YaHei;
      font-weight: 400;
      color: #2b4054;
    }
  }
}
</style>
